<?php
/**
 * Created by PhpStorm.
 * User: MADAO
 * Date: 2019/9/9
 * Time: 22:15
 */

namespace App\Services;

use Hyperf\Logger\LoggerFactory;

class DemoService
{
    /**
     * @var \Psr\Log\LoggerInterface
     */
    protected $logger;

    public function __construct(LoggerFactory $loggerFactory)
    {
        $this->logger = $loggerFactory->get('log','default');
    }

    public function one()
    {
        $this->logger->info("DemoService one");
    }
}
